#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
            for (int i = 0; i < 5; i++)
            {
                int spaces = 4 - i;
                int stars = 2 * i + 1;

                for (int j = 0; j < spaces; j++)
                {
                    printf(" ");
                }

                for (int k = 0; k < stars; k++)
                {
                    printf("*");
                }

                printf("\n");
            }

          
            for (int i = 3; i >= 0; i--)
            {
                int spaces = 4 - i;
                int stars = 2 * i + 1;

                for (int j = 0; j < spaces; j++)
                {
                    printf(" ");
                }

                for (int k = 0; k < stars; k++)
                {
                    printf("*");
                }

                printf("\n");
            }
        
	return 0;
}